package com.cskaoyan.day31.work1._03_builder.bean;

public class CustomUserBuilder {
    private CustomUser customUser = new CustomUser();
    public CustomUserBuilder username(String username){
        customUser.setUsername(username);
        return this;
    }
    public CustomUserBuilder password(String password){
        customUser.setPassword(password);
        return this;
    }
    public CustomUserBuilder age(Integer age){
        customUser.setAge(age);
        return this;
    }
    public CustomUserBuilder gender(String gender){
        customUser.setGender(gender);
        return this;
    }
    public CustomUser build(){
        return this.customUser;
    }
}
